<%--
  Created by IntelliJ IDEA.
  User: 86175
  Date: 2023/6/1
  Time: 20:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap/5.2.3/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<form method="post" action="addServlet">
    <div style="width: 50%;margin: 50px auto 0 auto" class="row g-3">
        <c:forEach items="${columnNames}" var="column">
            <div class="layui-input-group">
                <div class="layui-input-split layui-input-prefix">
                        ${column}
                </div>
                <input type="text" name="${column}" class="form-control">
                <input type="hidden" name="column" value="${column}"/>
                <input type="hidden" name="tableName" value="${tableName}"/>
            </div>
            <br>
        </c:forEach>
        <div style="width: 100%;margin: auto;text-align: center">
            <button style="width: 50%;margin:20px auto 0 auto" type="submit" class="btn btn-primary">添加</button>
        </div>
    </div>
</form>
</body>
</html>
